<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>MpegDemultiplexer: CDynamicArray Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MpegDemultiplexer
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_c_dynamic_array.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">CDynamicArray Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CDynamicArray" -->
<p><code>#include &lt;<a class="el" href="_c_dynamic_array_8h_source.html">CDynamicArray.h</a>&gt;</code></p>

<p><a href="class_c_dynamic_array-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_dynamic_array.html#ad498ab433c006faeef1f32d3ee4725bb">CDynamicArray</a> (int nInitialMaxSize=INITIAL_MAX_SIZE)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_dynamic_array.html#a0550c3629b455d06f3b8e0ca71de608f">CDynamicArray</a> (<a class="el" href="class_c_dynamic_array.html">CDynamicArray</a> *cDynamicArray)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_dynamic_array.html#a04676df77e4c5b4bf6dda324f3611c65">~CDynamicArray</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_dynamic_array.html#a2917422516affbc64d202ebad2475395">copyToArray</a> (const char *source, unsigned int size)</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afe5bf90ef1112bc760434d6a7abfe142"></a><!-- doxytag: member="CDynamicArray::m_cArray" ref="afe5bf90ef1112bc760434d6a7abfe142" args="" -->
char *&#160;</td><td class="memItemRight" valign="bottom"><b>m_cArray</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae86ee8c18c38246d6047f583c9ca272b"></a><!-- doxytag: member="CDynamicArray::m_nSize" ref="ae86ee8c18c38246d6047f583c9ca272b" args="" -->
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>m_nSize</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class enables to store the data and resize the data array according to our needs. the PESs are of this class because the PES's length is unknown and using this class we can extend the data array size as much as we need (till we get the whole PES ). </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad498ab433c006faeef1f32d3ee4725bb"></a><!-- doxytag: member="CDynamicArray::CDynamicArray" ref="ad498ab433c006faeef1f32d3ee4725bb" args="(int nInitialMaxSize=INITIAL_MAX_SIZE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_dynamic_array.html#ad498ab433c006faeef1f32d3ee4725bb">CDynamicArray::CDynamicArray</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nInitialMaxSize</em> = <code>INITIAL_MAX_SIZE</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>c'tor by deafault,allocates an array of INITIAL_MAX_SIZE. also allows the user to determine the initial size of the array by sending it in the c'tor. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">nInitialMaxSize-</td><td>specifies the initial size of the data array. by default it set to INITIAL_MAX_SIZE, also can be set by a user. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0550c3629b455d06f3b8e0ca71de608f"></a><!-- doxytag: member="CDynamicArray::CDynamicArray" ref="a0550c3629b455d06f3b8e0ca71de608f" args="(CDynamicArray *cDynamicArray)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_dynamic_array.html#ad498ab433c006faeef1f32d3ee4725bb">CDynamicArray::CDynamicArray</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_dynamic_array.html">CDynamicArray</a> *&#160;</td>
          <td class="paramname"><em>cDynamicArray</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>c'tor copies the data from the cDynamicArray class into the array.updates the array size according to the data that was copied. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cDynamicArray</td><td>- the cDynamicArray class whose data array should be copied. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a04676df77e4c5b4bf6dda324f3611c65"></a><!-- doxytag: member="CDynamicArray::~CDynamicArray" ref="a04676df77e4c5b4bf6dda324f3611c65" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_dynamic_array.html#a04676df77e4c5b4bf6dda324f3611c65">CDynamicArray::~CDynamicArray</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>d'tor </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a2917422516affbc64d202ebad2475395"></a><!-- doxytag: member="CDynamicArray::copyToArray" ref="a2917422516affbc64d202ebad2475395" args="(const char *source, unsigned int size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_c_dynamic_array.html#a2917422516affbc64d202ebad2475395">CDynamicArray::copyToArray</a> </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>copies the source data into the class array.Increases the class's array size its new size value. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">source-</td><td>a pointer to the array the data should be copied from </td></tr>
    <tr><td class="paramname">size-</td><td>the size of the data (in bytes) that should be copied </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_c_dynamic_array_8h_source.html">CDynamicArray.h</a></li>
<li>CDynamicArray.cpp</li>
</ul>
</div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_c_dynamic_array.html">CDynamicArray</a>      </li>

    <li class="footer">Generated on Sat Feb 4 2012 15:52:58 for MpegDemultiplexer by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
